package cn.magicman.demo;

public class ThreadExample3 {

    public static class MyRunnable implements Runnable {
        public void run() {
            System.out.println("MyThread running");
            System.out.println("MyThread finished");
        }
    }

    public static void main(String[] args) {
        Thread myThread = new Thread(new MyRunnable());
        myThread.start();
    }
}
